import { Radio } from "antd";

interface props {
  welcomeType: number; // 欢迎语类型
  setWelcomeType: any; // 设置欢迎语类型
}

const WelcomeMesType = ({ welcomeType, setWelcomeType }: props) => {
  return (
    <>
      <p className="mr-16 mb-24  bg-orange-fff7f0 rounded-bl-sm py-14 pr-6 pl-12 text-orange-400">
        <span className="icon-wrap text-yellow-200 mr-6">
          <i className="iconfont icon-jinggao"></i>
        </span>
        因企业微信限制，若使用成员已在「<b>企业微信后台</b>
        」配置了欢迎语，这里的欢迎语将不会生效
      </p>
      <div>
        <span className="mr-5 text-right">设置欢迎语：</span>
        <Radio.Group
          defaultValue={welcomeType}
          onChange={(e: any) => {
            setWelcomeType(e.target.value);
          }}>
          <Radio value={1}>渠道欢迎语</Radio>
          <Radio value={2}>默认欢迎语</Radio>
          <Radio value={3}>不发送欢迎语</Radio>
        </Radio.Group>
      </div>
    </>
  );
};

export default WelcomeMesType;
